package mapapp;


public class Distanta {
	Punct p1;
	Punct p2;
	
	public Punct getP1() {
		return p1;
	}
	public void setP1(Punct p1) {
		this.p1 = p1;
	}
	public Punct getP2() {
		return p2;
	}
	public void setP2(Punct p2) {
		this.p2 = p2;
	}
	
	public double distanceM(){
		return this.p1.distance(p2)*111200*Math.cos(Math.PI/4);
	}

}
